package 里氏代换原则.classes;

//正方形
	public class Square extends Rectangle
	{
		@Override
		public void setLength(int length) {
			super.setLength(length);
			super.setWidth(length);
		}
		@Override
		public void setWidth(int width) {
			super.setLength(width);
			super.setWidth(width);
		}
		
	}